﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="costExecutDetailReport.aspx.cs" Inherits="ReportManagement_costExecutDetailReport" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<link href="../Includes/Guide.css" type="text/css" rel="stylesheet" />
    <link href="../Includes/index.css" type="text/css" rel="stylesheet" />
    <link href="../Includes/MasterPage.css" type="text/css" rel="stylesheet" />
    <link href="../Includes/xtree.css" type="text/css" rel="stylesheet" />
    <link href="../CSS/MyCss.css" type="text/css" rel="stylesheet" />
    <link href="../css/Style.css" rel="stylesheet" type="text/css" />
    <title>部门费用明细分解</title>
    </head>
<script src="../js/PageControl.js" type="text/javascript"></script>
<script src="../Includes/jquery-1.4.1.js" type="text/javascript"></script>
<script src="../Includes/MyJScript.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
    //刷新页面
    function reload() {
        //        window.open('ApprovalFlow.aspx', 'main_right');
        parent.$("#main_right").attr("src", 'AuxiliaryManagement/BasicDataManagement/CostsSet/CostsList.aspx');
    }
    $(document).ready(function() {
    $("#btnAdd").click(function() {
            parent.PE_FrameTab.AddNew();
            //            window.open('ApprovalFlow.aspx', 'main_right');
            parent.$("#main_right").attr("src", 'AuxiliaryManagement/BasicDataManagement/Initialbudget/InitialBu.aspx');
            return false;
        });
        $("#btnDel").click(function() {
            if (!confirm("是否删除当前单据？"))
                return false;
        });
        $("a").click(function() {
            parent.PE_FrameTab.AddNew();
            //            window.open('ApprovalFlow.aspx?aprvlno=' + $(this).text(), 'main_right');
            parent.$("#main_right").attr("src", 'CostsManagement/costsApplyOrder.aspx?sysno=' + $(this).text());
        });

    });
</script>
<body>
    <form id="form1" runat="server">
     <div class="inputbuttondiv">
&nbsp;
<asp:Button ID="btnSec" runat="server" Text="查询" CssClass="inputbutton" 
             Visible="false" />
</div>
    <div>
    
    </div>
    <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="sysno">
            <Columns>
                 <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:CheckBox ID="orderAllCheckBox" runat="server" text="全选"
                        onclick="checkall(this)"/>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="orderCheckBox" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="行号">
                    <ItemTemplate>
                        <%# Container.DataItemIndex+1 %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:HyperLinkField DataTextField="sysno" HeaderText="单据号" />
                <asp:BoundField HeaderText="申请部门" DataField="deptname" />
                <asp:BoundField HeaderText="申请人" DataField="applypsn" />
                <asp:BoundField HeaderText="费用用途" DataField="costuse" />
                <asp:BoundField HeaderText="费用项" DataField="name" />
                 <asp:BoundField DataField="applymoney" HeaderText="费用金额" />
                <asp:BoundField HeaderText="制单人" DataField="fillpsn" />
                <asp:BoundField HeaderText="制单日期" DataField="filldate" 
                     DataFormatString="{0:yyyy-MM-dd}" />
                <asp:BoundField HeaderText="备 注" DataField="detremarks" />
                <asp:BoundField HeaderText="提交人" DataField="authorpsn" />
                <asp:BoundField HeaderText="提交日期" DataField="authorDate" />
                <asp:BoundField HeaderText="审批人" />
                <asp:BoundField HeaderText="审批日期" />
            </Columns>
        </asp:GridView>
    </div>
    </form>
</body>
</html>
